package com.ftg.learn.order.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author LY
 */
@Configuration
public class Knife4jConfiguration {

    @Bean
    public OpenAPI authApi() {
        return new OpenAPI()
                .info(new Info()
                        .title("订单服务")
                        .description("# 订单服务")
                        .version("1.0")
                        .contact(new Contact()
                                .name("61")
                                .url("https://doc.xiaominfo.com/")
                                .email("xiaoymin@foxmail.com"))
                        .license(new License()
                                .name("Apache 2.0")
                                .url("https://doc.xiaominfo.com/")));
    }
}
